package com.lixinlei.meetingfilm.user.controller.vo;

import com.lixinlei.meetingfilm.utils.common.vo.BaserRequestVO;
import com.lixinlei.meetingfilm.utils.exception.CommonServiceException;
import com.lixinlei.meetingfilm.utils.util.ToolUtils;
import lombok.Data;

@Data
public class LoginReqVO extends BaserRequestVO {

    private String username;
    private String password;

    @Override
    public void checkParam() throws CommonServiceException {
        if(ToolUtils.strIsNull(username) || ToolUtils.strIsNull(password)){
            throw new CommonServiceException(404, "username 或 password 不能为空");
        }
    }

}
